package com.own.business.system.dictionary.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.own.component.common.base.entity.po.BasePo;
import com.own.constant.ConstantBeanSuffix;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * SystemDictionaryItem
 *
 * @author chenxueli
 * @date 2023-06-21 09:38:02
 */
@Schema(title = "系统数据字典项目" + ConstantBeanSuffix.PO)
@Getter
@Setter
@ToString
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "own_system_dictionary_item")
public class SystemDictionaryItem extends BasePo {

    @Schema(title = "字典id")
    private Long fkDictionaryId;

    @Schema(title = "项目名称")
    private String name;

    @Schema(title = "数据项值")
    private String value;

    @Schema(title = "图标")
    private String icon;

    @Schema(title = "是否禁用 1=禁用 0=可用")
    private Integer isDisable;

    @Schema(title = "是否可编辑 1=可以 0=不可编辑")
    private Integer isEdit;

    @Schema(title = "顺序，默认数字越小约在前面")
    private Integer sortOrder;

}
